package com.swsc.solarverse.common.enums;

/**
 * @Author chencl
 * @Date 2023/7/26 14:21
 * @Version 1.0
 * @Description DefectDealProcessStateEnums 消缺审核状态
 */
@lombok.Getter
@lombok.AllArgsConstructor
public enum DefectProcessStateEnums {
    MSS_AUDIT("3", "安全部审核"),
    PSA_AUDIT("2", "站长审核"),
    DEAL("1", "已消缺"),
    UNDEAL("0", "未消缺"),
    ;

    private String state;
    private String name;


    public static String getName(String state) {
        for(DefectProcessStateEnums enums : DefectProcessStateEnums.values()){
            if(enums.state.equals(state)){
                return enums.name;
            }
        }
        return null;
    }
}
